#include <stdio.h>
#include <stdlib.h> 
#include <string.h>  
#include "huanshu.h"
void zhu11(void)
{
	root guanli = {.mima ="123"};
	
	int shen=1;
	while(shen)
	{int x;
	
	
	printf("\n欢迎来到本系统\n");
	
	printf("1.登陆\n");
	printf("2.管理员登陆\n");
	printf("0.退出 \n");
	printf(">");
	scanf("%d",&x);
	
	if(x==0)shen=0; 
	if(x==1)
		{
			system("clear"); 
			int deng_xian =-1;
				
				printf("1.刷卡登陆\n");
				printf("2.账号密码登陆\n");
				printf("0.退出 \n");
				printf(">");
				scanf("%d",&deng_xian);	
			if(deng_xian==1)
			member_show();//kahao登陆
			if(deng_xian==2)
			member_show1();//mima登陆
			if(deng_xian==0)break; 
	
		}
	
	if(x==2)
	{
		
		char ni[10];
		scanf("%s",ni);
		if(strcmp(guanli.mima, ni) == 0)
		{
		int hui1=-1;
		system("clear"); 
		printf("1.增加新会员\n");
		printf("2.查看所有用户隐私\n");
		printf("3.删除用户 \n");
		printf("0.退出 \n");
		
		scanf("%d",&hui1);
		
		if(hui1==3)member_del();//删除
		if(hui1==1)member_reg();//申请
		if(hui1==2)chankan();  //查看
		if(hui1==0)shen=0; 
		
		}  //查看
	system("clear"); 
		
	}//管理登陆
	
	

	
	}
	
}

